//
//  TicketsCell.m
//  LoveTourism
//
//  Created by qianfeng0 on 16/6/26.
//  Copyright © 2016年 王超. All rights reserved.
//

#import "TicketsCell.h"
#import "TicketsModel.h"
#import <UIImageView+WebCache.h>

@interface TicketsCell ()
@property (weak, nonatomic) IBOutlet UIImageView *PicimageView;
@property (weak, nonatomic) IBOutlet UILabel *numberLabel;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;

@end
@implementation TicketsCell


- (void)setModel:(TicketsModel *)model {
    
    _model = model;
    
    _numberLabel.text = [NSString stringWithFormat:@"产品编号:%@",model.ProductId];
    _titleLabel.text = model.Title;
    _priceLabel.text = [NSString stringWithFormat:@"￥%@起",model.Price];
    
    [_PicimageView sd_setImageWithURL:[NSURL URLWithString:model.ImgSrc] placeholderImage:[UIImage imageNamed:@"placeholder@2x"]];
    _PicimageView.layer.cornerRadius = 10;
    _PicimageView.layer.masksToBounds = YES;
}

@end
